import Mock from "mockjs"


const data = Mock.mock({
            'data|100':[
                {
                    ISBN:"@integer(1, 10)",
                    bookname:'@ctitle(3, 5)',
                    author:'@cname()',
                    units:'@integer(1, 10)',
                    price:'@integer(50, 200)元',
                    total:'@integer(1, 100)',
                    press:'中国人民教育出版社',
                    flag:true||false,
                    'img': "@image('80x120', '@color()' )",
                    'title':'@cparagraph(3, 5)'
                }
            ]
})
Mock.mock('/api/searchbook','post',(config:any)=>{
    const req = config
    return {
        req:req,
        data:data,
        msg:'数据获取成功',
        code:200
      
    }
})